home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
PIL
/
ImageFileIO.pyo
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2008-10-13
|
713b
|
20 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
from StringIO import StringIO
class ImageFileIO(StringIO):
def __init__(self, fp):
data = fp.read()
StringIO.__init__(self, data)
if __name__ == '__main__':
import Image
fp = open('/images/clenna.im', 'rb')
im = Image.open(ImageFileIO(fp))
im.load()
print im.mode, im.size